Create BGP Static Peer

You can configure a BGP static peer when you create or update a BGP peer.

About this task

Follow this procedure to configure BGP static peer.

Procedure

  1. To create a BGP static peer when you create a BGP peer, run the following command:
    efa tenant service bgp peer create --name <bgp-peer-name> --tenant <tenant-name> 
       --ipv4-uc-nbr <device-ip,vrf-name:neighbor-ip,remote-asn> 
       --ipv4-uc-nbr-bfd <switch-ip,vrf-name:ipv4-neighbor,bfd-enable(t/f),bfd-interval,bfd-rx,bfdmult> 
       --ipv4-uc-nbr-send-community <device-ip,vrf-name:neighbor-ip,
               all|both|extended|large|standard|large-and-standard|large-and-extended>
       --ipv6-uc-nbr-send-community <device-ip,vrf-name:neighbor-ip,
               all|both|extended|large|standard|large-and-standard|large-and-extended>

    The following example creates a BGP static peer:

    efa tenant service bgp peer create --name ten1bgppeer1 --tenant ten1 
       --ipv4-uc-nbr 10.20.246.15,ten1vrf1:10.20.30.40,50000 
       --ipv4-uc-nbr-bfd 10.20.246.15,ten1vrf1:10.20.30.40,true 
       --ipv4-uc-nbr-send-community 10.20.246.15,ten1vrf1:10.20.30.40,all 
       --ipv4-uc-nbr 10.20.246.16,ten1vrf1:10.20.30.40,50000 
       --ipv4-uc-nbr-bfd 10.20.246.16,ten1vrf1:10.20.30.40,true 
       --ipv4-uc-nbr-send-community 10.20.246.16,ten1vrf1:10.20.30.40,both
  2. To view BGP static peer, run the following command:
    efa tenant service bgp peer show --detail
    =======================================
    Name             : ten1bgppeer1
    Tenant           : ten1
    State            : bs-state-created
    Description      :
    
    Static Peer
    -----------
      Device IP        : 10.20.246.15
      VRF              : ten1vrf1
      AFI              : ipv4
      SAFI             : unicast
      Remote IP        : 10.20.30.40
      Remote ASN       : 50000
      Next Hop Self    : false
      Update Source IP :
      BFD Enabled      : true
      BFD Interval     : 0
      BFD Rx           : 0
      BFD Multiplier   : 0
      Default Originate: 
      Default Originate
      Route Map        : 
      Send Community   : all
      Dev State        : provisioned
      App State        : cfg-in-sync
    
      Device IP        : 10.20.246.15
      VRF              : ten1vrf1
      AFI              : ipv4
      SAFI             : unicast
      Remote IP        : 10.20.30.50
      Remote ASN       : 50000
      Next Hop Self    : false
      Update Source IP :
      BFD Enabled      : true
      BFD Interval     : 0
      BFD Rx           : 0
      BFD Multiplier   : 0
      Default Originate: false
      Default Originate
      Route Map        : 
      Send Community   : standard
    
      Dev State        : provisioned
      App State        : cfg-in-sync
    Device IP        : 10.20.246.16
      VRF              : ten1vrf1
      AFI              : ipv4
      SAFI             : unicast
      Remote IP        : 10.20.30.40
      Remote ASN       : 50000
      Next Hop Self    : false
      Update Source IP :
      BFD Enabled      : true
      BFD Interval     : 0
      BFD Rx           : 0
      BFD Multiplier   : 0
      Default Originate: false
      Default Originate
      Route Map        : 
      Send Community   : both
      Dev State        : provisioned
      App State        : cfg-in-sync
    
      Device IP        : 10.20.246.16
      VRF              : ten1vrf1
      AFI              : ipv4
      SAFI             : unicast
      Remote IP        : 10.20.30.50
      Remote ASN       : 50000
      Next Hop Self    : false
      Update Source IP :
      BFD Enabled      : true
      BFD Interval     : 0
      BFD Rx           : 0
      BFD Multiplier   : 0
      Default Originate: false
      Default Originate
      Route Map        :
      Send Community   : extended
      Dev State        : provisioned
      App State        : cfg-in-sync
    Dynamic Peer
    -----------
            0 Records
    
    
    
            0 Records
    ===================================
    
  3. To add a BGP static peer when you update a BGP peer, run the following command:
    efa tenant service bgp peer create --name <bgp-peer-name> --tenant <tenant-name>     
      --ipv4-uc-nbr <device-ip,vrf-name:neighbor-ip,remote-asn> 
      --ipv4-uc-nbr-bfd <switch-ip,vrf-name:ipv4-neighbor,bfd-enable(t/f),bfd-interval,bfd-rx,bfdmult>     
      --ipv4-uc-nbr-send-community <device-ip,vrf-name:neighbor-ip,all|both|extended|large|standard|large-and-standard|large-and-extended>               
      --ipv6-uc-nbr-send-community <device-ip,vrf-name:neighbor-ip,all|both|extended|large|standard|large-and-standard|large-and-extended>

    The following example adds a BGP static peer:

    # efa tenant service bgp peer update --name bgpservice1 --tenant tenant1 --operation peer-add --ipv6-uc-nbr 10.24.80.134,red:10::40,5000 --ipv6-uc-nbr-bfd 10.24.80.134,red:10::40,true,100,200,5 --ipv6-uc-nbr-update-source-ip 10.24.80.134,red:10::40,11::22 --ipv6-uc-nbr-next-hop-self 10.24.80.134,red:10::40,true
    efa tenant service bgp peer show
    ===========================================================================================
    Name : bgpservice1
    Tenant : tenant1
    State : bs-state-created
    +-------------+---+-----+--------+-------+-------+-------+--------+----+----------+-----------+-----------+
    |Device IP    |VRF| AFI | SAFI   | REMOTE| REMOTE|BFD    |BFD     |BFD |BFD       |Dev-state  |  App-state|
    |             |   |     |        | IP    | ASN   |Enabled|Interval|Rx  |Multiplier|           |           |
    +-------------+---+-----+--------+-------+-------+-------+--------+----+----------+-----------+-----------+
    |10.24.80.134 |red| ipv6| unicast| 10::40| 5000  |false  |100     |200 |5         |provisioned|cfg-in-sync|
    +-------------+---+-----+--------+-------+-------+-------+--------+----+----------+-----------+-----------+
    ===========================================================================================
  4. Verify the switch configuration on SLX device.
    Rack1-Device1# show running-config router bgp
    router bgp
     local-as 4200000000
     capability as4-enable
     fast-external-fallover
     neighbor 10.20.20.4 remote-as 4200000000
     neighbor 10.20.20.4 next-hop-self
     address-family ipv4 unicast
      network 172.31.254.46/32
      network 172.31.254.123/32
      maximum-paths 8
      graceful-restart
     !
     address-family ipv4 unicast vrf ten1vrf1
      redistribute connected
      neighbor 10.20.30.40 remote-as 50000
      neighbor 10.20.30.40 send-community all
      neighbor 10.20.30.40 bfd
      neighbor 10.20.30.50 remote-as 50000
      neighbor 10.20.30.50 send-community standard
      neighbor 10.20.30.50 bfd
      maximum-paths 8
     !
     address-family ipv6 unicast
     !
     address-family ipv6 unicast vrf ten1vrf1
      redistribute connected
      maximum-paths 8
     !
     address-family l2vpn evpn
      graceful-restart
     !
    !
    Rack1-Device2# show running-config router bgp
    router bgp
     local-as 4200000000
     capability as4-enable
     fast-external-fallover
     neighbor 10.20.20.5 remote-as 4200000000
     neighbor 10.20.20.5 next-hop-self
     address-family ipv4 unicast
      network 172.31.254.46/32
      network 172.31.254.176/32
      maximum-paths 8
      graceful-restart
     !
     address-family ipv4 unicast vrf ten1vrf1
      redistribute connected
      neighbor 10.20.30.40 remote-as 50000
      neighbor 10.20.30.40 send-community both
      neighbor 10.20.30.40 bfd
      neighbor 10.20.30.50 remote-as 50000
      neighbor 10.20.30.50 send-community extended
      neighbor 10.20.30.50 bfd
      maximum-paths 8
     !
     address-family ipv6 unicast
     !
     address-family ipv6 unicast vrf ten1vrf1
      redistribute connected
      maximum-paths 8
     !
     address-family l2vpn evpn
      graceful-restart
     !
    !
  5. To delete a BGP static peer when you update a BGP peer, run the following command:
    # efa tenant service bgp peer update --name <peer-name> --tenant <tenant-name> --operation peer-delete --ipv4-unicast-neighbor <switch-ip,vrf-name:ipv4-neighbor> --ipv6-unicast-neighbor <switch-ip,vrf-name:ipv4-neighbor >

    The following example deletes a BGP peer:

    # efa tenant service bgp peer update --name bgpservice1 --tenant tenant1 --operation peer-delete --ipv4-unicast-neighbor 10.24.80.134,red:10.20.30.40
    # efa tenant service bgp show
    =========================================================================================
    Name : bgpservice1
    Tenant : tenant1
    State : bs-state-created
    +------------+----+----+-------+-------+-------+--------+---------+----+----------+------------+-----------+
    |Device IP   |VRF |AFI |SAFI   |REMOTE |REMOTE |BFD     |BFD      |BFD |BFD       |Dev-state   |App-state  |
    |            |    |    |       |IP     |ASN    |Enabled |Interval |Rx  |Multiplier|            |           |
    +------------+----+----+-------+-------+-------+--------+---------+----+----------+------------+-----------+
    |10.24.80.134|red |ipv6|unicast|10::40 |5000   |false   |0        |0   |0         |provisioned |cfg-in-sync|
    +------------+----+----+-------+-------+-------+--------+---------+----+----------+------------+-----------+
    =========================================================================================